<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
	    <link rel="stylesheet" type="text/css" href="${ctx}/static/h5/css/public/common.css"/>
	    <link rel="stylesheet" href="${ctx}/static/h5/css/public/bootstrap.min.css">
	    <link rel="stylesheet" type="text/css" href="${ctx}/static/h5/css/personal/Enter.css"/>

		<title></title>
	</head>
	<body>
		<div id="Enter">
			<header>
				<div class="head">
					<div class="head_img">
						<img src="${ctx}/static/h5/images/wxpic.jpg"/>
					</div>
					<h3>云谱文化</h3>
				</div>
			</header>
			<section>
				<div class="content">
					<h4>网页由该公众号开发，请确认授权以下信息</h4>
					<ul>						
						<li>获取你的公开信息（昵称、头像）</li>
					</ul>
				</div>
			</section>
			<footer>
				<button class="wechatlogin">微信登录</button>
			</footer>
		</div>
	</body>
	<script src="${ctx}/static/h5/js/public/jquery-2.2.3.min.js"></script>
<script>
	$(function () {
		//微信登录
		$(".wechatlogin").on("click",function () {
			var url="http://"+window.location.host+"/family-tree-web/api/v1/common/weixinLogin";
			window.location ="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx812c260c8e3bf9aa&redirect_uri="+encodeURI(url)+"&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect";
		})
	})

</script>

</html>
